package com.sahala.myhessian.client;

import java.net.MalformedURLException;

import com.caucho.hessian.client.HessianProxyFactory;
import com.sahala.myhessian.HelloService;

public class Client {
	public static void main(String[] args) throws MalformedURLException {
		String url = "http://127.0.0.1:8080/myhessian/hessian/hello";
		HessianProxyFactory factory = new HessianProxyFactory();
		HelloService hello = (HelloService) factory.create(HelloService.class, url);
		System.out.println(hello.say());
	}
}
